<!-- 添加 -->
<script id="tpl-add" type="text/template">
    <div class="am-padding-xs am-padding-top-sm">
        <div class="am-form-group">
            <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">二维码规则 </label>
            <div class="am-u-sm-9 am-u-end">
                <input type="text" class="tpl-form-input" name="data[prefix]" value="" required>
            </div>
        </div>
        <div class="am-form-group">
            <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">跳转页面 </label>
            <div class="am-u-sm-9 am-u-end">
                <input type="text" class="tpl-form-input" name="data[path]" value="pages/index/index" required>
                <small>扫码后跳转到小程序指定的页面</small>
            </div>
        </div>
        <div class="am-form-group">
            <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">使用范围 </label>
            <div class="am-u-sm-9 am-u-end">
                <label class="am-radio-inline">
                    <input type="radio" name="data[open_version]" value="1" data-am-ucheck> 开发版
                </label>
                <label class="am-radio-inline">
                    <input type="radio" name="data[open_version]" value="2" data-am-ucheck> 体验版
                </label>
                <label class="am-radio-inline">
                    <input type="radio" name="data[open_version]" value="3" checked data-am-ucheck> 正式版
                </label>
            </div>
        </div>
        <div class="am-form-group">
            <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">是否独占 </label>
            <div class="am-u-sm-9 am-u-end">
                <label class="am-radio-inline">
                    <input type="radio" name="data[permit_sub_rule]" value="1" checked data-am-ucheck> 否
                </label>
                <label class="am-radio-inline">
                    <input type="radio" name="data[permit_sub_rule]" value="2" data-am-ucheck> 是
                </label>
            </div>
        </div>
    </div>  
</script>